import parse from "./json/json_parse";
// var coffee = require("./coffee");

const value = `
{
  a: 1
}
`

var errors = [];
try {
  if (value)
    console.log('value', value);

  parse(value);
} catch (e) {
  var pos = this.doc.indexToPosition(e.at - 1);
  errors.push({
    row: pos.row,
    column: pos.column,
    text: e.message,
    type: "error"
  });
}
console.log(errors);